package com.lxd.milktea.service;

import com.lxd.milktea.dataobject.User;
import com.lxd.milktea.exception.SellException;

/**
 * @Author Ha
 * @DATE 2019/6/5 20:36
 **/
public interface UserService {
    User findByUsernameAndPassword(String username, String password);

    User findByUsername(String username);

    User Login(String username,String password) throws SellException;

    Boolean register(User user);

}
